home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #6 / Amiga Plus CD - 2004 - No. 06.iso / AmiSoft / Comm / misc / trsi-ftpd01.lha / FAME-FTPd / source / smakefile < prev    next >
Makefile  |  2004-04-24  |  3KB  |  111 lines

  1. ####################################################
  2. # Makefile for FAME-FTPd - Written by Sascha Pfalz #
  3. #                                                  #
  4. # Some parts based on Term's Smakefile             #
  5. ####################################################
  6.  
  7. .c.o:
  8.     @echo NOLINE "*nCompiling $<..."
  9.     @sc NOVERBOSE $(CFLAGS) $<
  10.   @echo NOLINE "done.*n"
  11.  
  12. ####################
  13. # All object parts #
  14. ####################
  15.  
  16. OBJS=support.o famesupport.o main.o MakeArray.o
  17.  
  18. ############################
  19. # Name of final Executable #
  20. ############################
  21.  
  22. PROGRAM = FAME-FTPd
  23.  
  24. ###########################
  25. # CPU Type to compile for #
  26. ###########################
  27.  
  28. CPU=68040
  29.  
  30. #################################################
  31. # Define which will be shown inside Version tag #
  32. #################################################
  33.  
  34. CPU_TYPE="68040"
  35.  
  36. ###################################################
  37. # Set OPTIMIZE=NOOPTIMIZE if you do not want this #
  38. ###################################################
  39.  
  40. OPTIMIZE=OPTIMIZE OPTIMIZERINLINELOCAL OPTIMIZERSCHEDULER OPTIMIZERTIME
  41.  
  42. ################################################
  43. # The compiler options to use are listed here: #
  44. ################################################
  45.  
  46. CCOPTS=MEMORYSIZE=HUGE IGNORE=315,306 INCLUDEDIR=NETINCLUDE: PARAMS=R NOSTKCHK STRINGMERGE NOCHECKABORT COMMENTNEST NOMULTIPLEINCLUDES UTILITYLIBRARY STRINGSECTION=CODE
  47.  
  48.  
  49. ##############################################
  50. # GST File to use for improved compile speed #
  51. ##############################################
  52.  
  53. GSTFILE=CWORK:FAMEFTP/ftpd/FAME-FTPd.gst
  54.  
  55. #####################################
  56. # Compiler settings, do not change! #
  57. #####################################
  58.  
  59. CFLAGS = cpu=$(CPU) DEF=CPU_TYPE=$(CPU_TYPE) GST=$(GSTFILE) $(CCOPTS) $(OPTIMIZE)
  60. AFLAGS =    -d -u -dCPU_$(CPU) -dCPU='$(CPU)'
  61. LFLAGS =    quiet smallcode smalldata noicons nodebug STRIPDEBUG
  62.  
  63. ################
  64. # Default Rule #
  65. ################
  66.  
  67. all:    start prg
  68.  
  69. #########################
  70. # Print Welcome message #
  71. #########################
  72.  
  73. cls:
  74.     @cls
  75.  
  76. start: cls
  77.          @echo "*nCreating $(PROGRAM) as $(CPU) Version"
  78.     @rx version.rexx
  79.  
  80. ###########################
  81. # Compile the whole stuff #
  82. ###########################
  83.  
  84. prg:    $(OBJS)
  85.     @echo NOLINE "*nLinking $(PROGRAM)..."
  86.         @slink with <<
  87.          from LIB:c.o $(OBJS) to $(PROGRAM) LIB LIB:sc.lib LIB:amiga.lib NETLIB:netd.lib $(LFLAGS)
  88.     <
  89.     @echo NOLINE "done.*n*nSize of Program: "
  90.     @List $(PROGRAM) NOHEAD LFORMAT="%l Bytes"
  91.     @echo ""
  92.  
  93. ################
  94. # Dependencies #
  95. ################
  96.  
  97. support.o: support.c proto.h ftp.h struct_ex.h
  98. famesupport.o: famesupport.c proto.h ftp.h struct_ex.h
  99. MakeArray.o: MakeArray.c proto.h struct_ex.h
  100. main.o: main.c proto.h support.o famesupport.o MakeArray.o ftp.h struct.h
  101.  
  102.  
  103. ###################################################################
  104. # Clean up all Objectfiles and also remove the Program executable #
  105. ###################################################################
  106.  
  107. clean:
  108.     @-echo NOLINE "*nRemoving Object- and Programfiles..."
  109.     @-delete quiet $(OBJS) $(PROGRAM) >NIL:
  110.   @-echo "done.*n"
  111.